target: dll

include $(CPPWEB_INSTALL_HOME)/makeconf

OBJ_PATH	= .
LIB_OUTPUT	= $(DLL_OUTPUT_PATH)/libjni.stdx.so

LIBLINK	= -L$(LIB_OUTPUT_PATH) -lstdx -lclib $(PLATFORMLINK)
INCPATH	= -I$(LIBRARY_PATH) -I. -I./inc

$(OBJ_PATH)/%.o:%.c
	$(CPP) -DXG_DLL $(INCPATH) -c -o $@ $<

$(OBJ_PATH)/%.o:%.cpp
	$(CPP) -DXG_DLL $(INCPATH) -c -o $@ $<

dll: main.o
	$(CPP_DLL) -o $(LIB_OUTPUT) $(OBJ_PATH)/main.o $(LIBLINK)

clean:
	@$(DELETEFILE) $(OBJ_PATH)/*.o